package com.blog.back.dao.ext;

import com.blog.entity.ArticleEntity;
import com.blog.vo.ArticleClassificationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：CreateSequence
 * @Date：2020-08-15 21:33
 * @Description：<描述>
 */
@Mapper
public interface ArticleExtMapper {

    /**
     * 根据当前文章id查找该用户的下一篇文章
     * @param articleId
     * @param usersId
     * @return
     */
    ArticleEntity selectNextArticleByArticleIdAndUserId(@Param("articleId") Long articleId, @Param("usersId") Long usersId);

    /**
     * 根据当前文章id查找该用户的上一篇文章
     * @param articleId
     * @param usersId
     * @return
     */
    ArticleEntity selectPrevArticleByArticleIdAndUserId(@Param("articleId") Long articleId, @Param("usersId") Long usersId);

    /**
     * 根据用户id查找自我介绍
     * @param usersId
     * @return
     */
    ArticleEntity selectIntroduceByUserId(@Param("usersId") Long usersId);

}
